Registers a background task for the Network Status Change event and the Internet Available system condition. The background task runs whenever the Network status changes if Internet is available.